package com.eagle.coders.core.action.service;

import java.util.List;

import javax.ejb.Stateless;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.inject.Inject;

import com.eagle.coders.rules.service.RuleService;
import com.eagle.coders.security.beans.dao.annotation.JBossDrools;

@Stateless
@TransactionManagement(TransactionManagementType.CONTAINER)
public class ActionServiceBean implements ActionService{

	@Inject @JBossDrools RuleService droolService;

	@Override
	public void executeAction(List<?> toExecute, String rulePath) {
		// TODO Auto-generated method stub
		droolService.buildRulesEngine("com/eagle/coders/security/beans/dao/rules/actionRules.drl", toExecute, null);
	}

}
